/**
 * 工序列表
 * Created by xc on 2015/5/7.
 */
define(function (require, exports, module) {
  'use strict';
  module.exports = function (app) {
    app.register.controller('ProcessListCtrl', ['$scope', 'MHService', '$routeParams', '$location',
      function ($scope, MHService, $routeParams, $location) {
        $scope.URL = MHService.URL.process + '?id=' + $routeParams['projectId'];
        //将当前的项目Id保存，接下来会用到
        MHService.globalData(true, {key: 'projectId', value: $routeParams['projectId']});
        $scope.title = '工序列表 ' + $location.search().name;
      }]);
  };
});
